//
//  LustDataCollectionViewCell.m
//  safeLady
//
//  Created by Justsoso on 2017/7/11.
//  Copyright © 2017年 xmy. All rights reserved.
//

#import "LustDataCollectionViewCell.h"

@implementation LustDataCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_titleLabel];
        UIView *view = self.contentView;
        
        [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            
            make.bottom.equalTo(view.mas_centerY).offset(0);
            make.height.equalTo(@15);
            make.centerX.equalTo(view.mas_centerX);
        }];
        
        _contentLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_contentLabel];
        
        [_contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            
            make.top.equalTo(view.mas_centerY).offset(0);
            make.centerX.equalTo(view.mas_centerX);
            make.height.equalTo(@20);
        }];
        
        
        _titleLabel.textColor = [UIColor colorWithHex:0xC4C2C2];
        _titleLabel.font = [UIFont systemFontOfSize:12.f];
        
        _contentLabel.textColor = [UIColor colorWithHex:0x8589A8];
        _contentLabel.font = [UIFont systemFontOfSize:18.f];
        
        _rightLabel = [[UILabel alloc] init];
        _rightLabel.backgroundColor = [UIColor colorWithHex:0xf7f7f7];
        [self.contentView addSubview:_rightLabel];
        [_rightLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(view.mas_top).offset(15);
            make.bottom.equalTo(view.mas_bottom).offset(-15);
            make.left.equalTo(view.mas_right).offset(0.5);
            make.width.equalTo(@1);
        }];
        
        _bottomLabel = [[UILabel alloc] init];
        _bottomLabel.backgroundColor = [UIColor colorWithHex:0xf7f7f7];
        [self.contentView addSubview:_bottomLabel];
        [_bottomLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(view.mas_bottom).offset(0.5);
            make.left.equalTo(view.mas_left).offset(15);
            make.right.equalTo(view.mas_right).offset(-15);
            make.height.equalTo(@1);
        }];

        
        
    }
    return self;
}

@end
